import request from '../utils/request';
export const mustData = query => {
    return request({
        url: '/api/srm/picturedic/doMain',
        method: 'post',
        // url: './json/selectMustPic.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/srm/picturedic/doAdd',
        method: 'post',
        // url: './json/true.json',
        // method: 'get',
        data: query,
    });
};
export const doUpdate = query => {
    return request({
        url: '/api/srm/picturedic/doUpdate',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        data: query
    });
};
export const doDelete = query => {
    return request({
        url: '/api/srm/picturedic/doDelete',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        params: query
    });
};
//查询一个Id的基本信息
export const selectByPicDicId = query => {
    return request({
        url: '/api/srm/picturedic/selectById',
        method:'post',
        // url:'./json/mustpicone.json',
        // method: 'get',
        params: query
    });
};
/*不分页查询所有*/
export const slectAllPicDic = query => {
    return request({
        url: '/api/srm/picturedic/doAll',
        method: 'post',
        // url: './json/selectMustPic.json',
        // method: 'get',
        params: query,
    });
};

